package com.novabluetooth.data.ecgxmlparse;

import java.io.InputStream;

import com.novabluetooth.bean.ECG;

public interface ECGParser {  
	  /** 
     * 解析输入流 得到Book对象集合 
     * @param is 
     * @return 
     * @throws Exception 
     */  
    public  ECG  parse(InputStream is) throws Exception;  
  
    /** 
     * 序列化Book对象集合 得到XML形式的字符串 
     * @param books 
     * @return 
     * @throws Exception 
     */  
    public String serialize( ECG  ecg) throws Exception;    
}  
